package santeclair.referentiel.optique.referentiel.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;

import santeclair.lunar.framework.dao.jpa.impl.FwkCodeJpaDAO;
import santeclair.referentiel.optique.config.Constant;
import santeclair.referentiel.optique.model.SurfaceVerre;
import santeclair.referentiel.optique.referentiel.dao.SurfaceVerreDAO;

@Repository
public class SurfaceVerreDAOImpl extends FwkCodeJpaDAO<SurfaceVerre, String> implements SurfaceVerreDAO {
    @PersistenceContext(unitName = Constant.PERSISTENCE_UNIT_NAME)
    private EntityManager em;

    @Override
    public Class<SurfaceVerre> getEntityClass() {
        return SurfaceVerre.class;
    }

    @Override
    public EntityManager getEntityManager() {
        return em;
    }

}
